#include "StdAfx.h"
#include "Chartconfig.h"


Chartconfig::Chartconfig(void)
{
	nInitWidth = X_SCALE;
	nWidthExtent = 10;

	crDot = RGB(255,0,0);
	crWarning[0] = RGB(0x3b,0x8e,0xcc);
	crWarning[1] = RGB(0x36,0xc9,0x3e);
	crWarning[2] = RGB(0xeb,0xe4,0x50);
	crWarning[3] = RGB(0xff,0x7e,0x00);
	crWarning[4] = RGB(0xff,0x14,0x22);
	crBG = RGB(255,255,255);
	crGuideLine = RGB(128,128,128);
	crAxis = 0;

/*
	crDataLines[0] = RGB(0x00,0x00,0xCC);
	crDataLines[1] = RGB(0x00,0x99,0x00);
	crDataLines[2] = RGB(0xFF,0xB9,0x14);
	crDataLines[3] = RGB(0x66,0x33,0xCC);
	crDataLines[4] = RGB(0xCC,0x33,0x33);
	crDataLines[5] = RGB(0xFF,0x66,0x00);
	crDataLines[6] = RGB(0xC6,0xE2,0xFF);
	crDataLines[7] = RGB(0x66,0xCC,0xFF);
	crDataLines[8] = RGB(0x66,0x33,0x00);
	crDataLines[9] = RGB(0xCC,0x99,0xCC);*/


	crDataLines[0] = 	RGB(0, 191, 255); //3. deepsky blue
	crDataLines[1] = 	RGB(0, 0, 205); //4. medium blue
	crDataLines[2] = 	RGB(139, 69, 19); //5. saddle brown
	crDataLines[3] = 	RGB(34, 139, 34); //6. forest green
	crDataLines[4] = 	RGB(154, 205, 50); //7. yellow green
	crDataLines[5] = 	RGB(32, 178, 170); //8. lightsea green
	crDataLines[6] = 	RGB(255, 192, 203); //9. pink
	crDataLines[7] = 	RGB(255, 0, 0); //10. red
	crDataLines[8] = 	RGB(255, 165, 0); //11. orange
	crDataLines[9] = 	RGB(210, 105, 30); //12. chocolate
	crDataLines[10] = 	RGB(128, 128, 0); //13. 
	crDataLines[11] = 	RGB(128, 0, 128); //14. purple	
	crDataLines[12] = 	RGB(220, 220, 220); //15. gainsboro
	crDataLines[13] = 	RGB(105, 105, 105); //2. dim gray
	crDataLines[14] = 	RGB(0, 0, 0); //1. black

	bShowGuideLine = FALSE;
	bShowDataLine = TRUE;
	bAxisYSensitive = TRUE;
	bGraphMoving = FALSE;

	dblAxisYMin = 0;
	dblAxisYMax = 0;

	nMarginTop = 30;
	nMarginLeft = 80;
	nMarginRight = 20;
	nMarginBottom = 40;

	szAxisXNM = "Axis X";
	szAxisYNM = "Axis Y";
	szFormat = "%.1f";

}

Chartconfig::~Chartconfig(void)
{
}
